package com.tanhua.service;

import com.tanhua.dubbo.mongo.UserLocationAPI;
import com.tanhua.interceptor.UserHolder;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class BaiduService {

    @DubboReference
    private UserLocationAPI userLocationAPI;

    public void uploadLocation(Double longitude, Double latitude, String addrStr) {
        userLocationAPI.uploadLocation(UserHolder.getUserId(),longitude,latitude,addrStr);
    }


}
